package cn.yunhe.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yunhe.dao.DeptDao;

import cn.yunhe.entity.Dept;
import cn.yunhe.service.DeptService;

@Service("deptBiz")
public class DeptServiceImpl  implements DeptService{
@Autowired
private DeptDao deptDao;
	//查询供应商所有信息
	/*@Override
	public List<Supp> selectSupp() {
		return suppDao.selectSupp();
	}
	public SuppDao getSuppDao() {
		return suppDao;
	}
	public void setSuppDao(SuppDao suppDao) {
		this.suppDao = suppDao;
	}
	//模糊查询供应商信息,按姓名name查询
	@Override
	public List<Supp> selectMoHuSupp(String pname) {
		
		return suppDao.selectMoHuSupp(pname);
	}
	//连表查询,查询供应商下  提供的药品名称
	@Override
	public List<Drug> selectSuppAndTypeAndDrug(String pname) {
		
		return suppDao.selectSuppAndTypeAndDrug(pname);
	}
	@Override
	public int insertSupp(Supp supp) {
		return suppDao.insertSupp(supp);
	}
	@Override
	public int updateSupp(Supp supp) {
		return suppDao.updateSupp(supp);
	}
	@Override
	public int updatePstateSupp(Supp supp) {
	
		return suppDao.updatePstateSupp(supp);
	}*/

@Override
public List<Dept> chaDept() {
	// TODO Auto-generated method stub
	return deptDao.chaDept();
}
@Override
public List<Dept> chaDept1() {
	// TODO Auto-generated method stub
	return deptDao.chaDept1();
}


@Override
public int addDept(Dept dept) {
	// TODO Auto-generated method stub
	return deptDao.addDept(dept);
}

@Override
public int gaiDept(Dept dept) {
	// TODO Auto-generated method stub
	return deptDao.gaiDept(dept);
}

@Override
public int delDept(Dept dept) {
	// TODO Auto-generated method stub
	return deptDao.delDept(dept);
}

@Override
public List<Dept> deidChaEmp() {
	// TODO Auto-generated method stub
	return deptDao.deidChaEmp();
}

@Override
public int delUpdateDept(int deid) {
	// TODO Auto-generated method stub
	return deptDao.delUpdateDept(deid);
}

}
